package com.thero.core;

import com.thero.core.chess.Color;
import com.thero.core.chess.Player;
import com.thero.core.chess.Room;
import io.netty.channel.Channel;

import java.util.Set;

/**
 * Created by wusk on 2017/11/27.
 * 启动类
 */
public class GameMain {
    public static void main(String[] args){
//        short blackId = 1001;
//        short whiteId = 1002;
//        short home = 200;
//        Player black = new Player(blackId, home, 1002, Color.black);
//        Player white = new Player(whiteId, home, 1001, Color.white);
//        Room room = new Room(black, white);
//
//        room.put(11);
//        room.put(41);
//        room.put(71);
//        room.put(42);
//        room.put(43);
//
//        room.put(33);
//
//        System.out.println("hello");
//        System.out.println(room.check(11));
//        System.out.println(room.check(41));
//        System.out.println(room.check(71));
//        System.out.println(room.check(22));
//
//        boolean kill = room.kill(33);
//        System.out.println(kill);
//        boolean put = room.put(33);
//        System.out.println(put);
//        System.out.println(room.killCheck());


        //1.初始化游戏信息
        //2.初始化网络环境

        new Thread(() -> {
            try{
                System.out.println("hello");
                Thread.sleep(1000);
                System.out.println("world");
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }).start();
    }
}
